﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RBAC.Web.Utilities
{
    public class MyRazorViewEngine : RazorViewEngine
    {
        public MyRazorViewEngine()
        {
            var newLocationFormat = new[]
                                        {
                                            "~/Views/{1}/Partial/{0}.cshtml",
                                        };
 
            PartialViewLocationFormats = PartialViewLocationFormats.Union(newLocationFormat).ToArray();
        }
    }
}